package comprasdiretas.entity;

import java.io.Serializable;
import java.lang.String;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: AreaAtuacaoEntity
 *
 */

@NamedQueries({@NamedQuery(name="procurarAreaAtuacaoPeloID", query="SELECT a FROM AreaAtuacaoEntity a WHERE a.id LIKE :id ORDER BY a.atuacao"),
			@NamedQuery(name="procurarAreaAtuacaoPeloNome", query="SELECT a FROM AreaAtuacaoEntity a WHERE UPPER(a.atuacao) LIKE :atuacao ORDER BY a.atuacao")})
@Entity
@Table(name="areaatuacao", schema="comprasdiretasdb")
public class AreaAtuacaoEntity implements Serializable {
   
	@Id
	@Column(name="id")
	@TableGenerator(allocationSize=1,initialValue=1,name="AreaAtuacao_SEQ", 
			table="sequence",pkColumnName="SEQ_NAME", valueColumnName="SEQ_COUNT", 
			schema="comprasdiretasdb")
	@GeneratedValue(strategy=GenerationType.TABLE, generator="AreaAtuacao_SEQ")
	private int id;
	
	@Column(name="atuacao")
	private String atuacao;
	
	private static final long serialVersionUID = 1L;

	public AreaAtuacaoEntity() {
		super();
	}  
	
	public AreaAtuacaoEntity(String atuacao) {
		super();
		this.atuacao=atuacao;
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}   
	
	public String getAtuacao() {
		return this.atuacao;
	}

	public void setAtuacao(String atuacao) {
		this.atuacao = atuacao;
	}
   
}
